import request from '@/utils/request'

// 查询计价器列表
export function listRentValuation(query) {
  return request({
    url: '/rent/rentValuation/list',
    method: 'get',
    params: query
  })
}

// 查询计价器详细
export function getRentValuation(id) {
  return request({
    url: '/rent/rentValuation/' + id,
    method: 'get'
  })
}

// 新增计价器
export function addRentValuation(data) {
  return request({
    url: '/rent/rentValuation',
    method: 'post',
    data: data
  })
}

// 修改计价器
export function updateRentValuation(data) {
  return request({
    url: '/rent/rentValuation',
    method: 'put',
    data: data
  })
}

// 删除计价器
export function delRentValuation(id) {
  return request({
    url: '/rent/rentValuation/' + id,
    method: 'delete'
  })
}
